<?php
//system folder name configure
define('FOLDER_CTL','controller');
define('FOLDER_LOGIC','logic');
define('FOLDER_MODEL','model');
define('FOLDER_VIEW','view');
define('FOLDER_SERVICE','service');
define('FOLDER_CONFIG','config');
define('FOLDER_TPL','templates');
define('FOLDER_TPC','templates_c');
define('FOLDER_LOGS','logs');
define('FOLDER_ERROR','error');
define('FOLDER_TEST','test');
define('FOLDER_DB', 'db');
define('FOLDER_CACHE', 'cache');
define('FOLDER_THIRD_PARTY', 'thirdparty');

//system path configure
define('APP_PATH',ROOT_PATH.'app'.DS);                              
define('CONFIG_PATH',ROOT_PATH.FOLDER_CONFIG.DS);                   //config included path
define('MODEL_PATH',ROOT_PATH.FOLDER_LOGIC.DS);                     //logic model included path
define('LOGS_PATH',ROOT_PATH.FOLDER_LOGS.DS);                       //file logs path
define('SERVICE_PATH',ROOT_PATH.FOLDER_SERVICE.DS);                 //service path
define('TEST_PATH',ROOT_PATH.FOLDER_TEST.DS);			            //test temporay files path
define('LIBS_PATH',ROOT_PATH.'libs'.DS);                            //framework core source base path
define('LIBS_MODEL_PATH',LIBS_PATH.FOLDER_MODEL.DS);                //framework core model path
define('LIBS_VIEW_PATH',LIBS_PATH.FOLDER_VIEW.DS);                  //framework core view path
define('LIBS_CTL_PATH',LIBS_PATH.FOLDER_CTL.DS);                    //framework core controller path
define('FOLDER_EXPLUGINS', LIBS_VIEW_PATH . 'explugins');           //smarty ex-plugins for apps
define('LOGIC_MODEL_DB_PATH', MODEL_PATH.DS.FOLDER_DB.DS);          //logic model db path
define('LOGIC_MODEL_CACHE_PATH', MODEL_PATH.DS.FOLDER_CACHE.DS);    //logic model cache path
define('THIRD_PARTY_PATH', ROOT_PATH.FOLDER_THIRD_PARTY.DS);  //third party logic
//system default app path name
define('DEFAULT_APP','www');
define('COOKIE_DOMAIN','');
/**
* Define the project's url command
* URL's STATE command likes common or com_user meanning CommonController or ComUserController class object.
* URL's ACTION command likes get_name or name_id meanning getName or nameId methods.
*/
define('STATE','s');
define('ACTION','a');
define('DEFAULT_STATE','common');
define('DEFAULT_ACTION','view');
define('DEFAULT_CONTROLLER','Controller');
define('DEV_ENV', true);
/**
* server configure
* @memcache
* @host
* @timestamp
* @database
*/
define('HTTP_HOST', strtolower($_SERVER['HTTP_HOST']));
define('TIMESTAMP', time());
//memcached configure
define('MC_LOCALHOST', '127.0.0.1:11211');
define('MC_KEY_PREFIX',APPWEBROOT);
define('IDCMC_SERVERS',MC_LOCALHOST);
define('IDCMC_MSG_CENTER',MC_LOCALHOST);
//database configure
define('MASTER', 'master');
define('SLAVE', 'slave');
define('DBNAME', 'dbname');
define('USER','user');
define('PASSWD', 'passwd');
define('PORT', 'port');
define('HOST', 'host');
//error type defined
define('LOG_ERROR', 2);
define('LOG_WARNING', 3);
define('LOG_NOTICE', 4);
define('LOG_DEBUG', 5);
define('LOG_INFO', 6);

require_once LIBS_PATH.'basics.php';
?>